package com.huayi.order.service.impl;

import com.huayi.order.entity.SalesManEntity;
import com.huayi.order.repository.SalesManRepository;
import com.huayi.order.service.SalesManService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SalesManServiceImpl implements SalesManService {
    @Autowired
    private SalesManRepository repository;
    @Override
    public List<SalesManEntity> getList(String trueName, String mobile) {
        return repository.getList(trueName,mobile);
    }

    @Override
    public Integer add(String trueName, String mobile, String summary) {
        return repository.add(trueName,mobile,summary);
    }
}
